<?php
/**
 * Created by PhpStorm.
 * User: LENOVO
 * Date: 2018/1/19
 * Time: 23:17
 */

namespace app\api\controller\v1;


//use app\api\validate\TestValidate;

use app\api\validate\IDMustBePositiveInt;

class Banner
{
    public function getBanner($id)
    {
        $id = 2;
        (new IDMustBePositiveInt())->goCheck();
        //echo '11';

//        $data = [
//            'name' => 'linqingh11111111111111',
//            'email' => '122748628qq.com'
//        ];
//        $validate=new TestValidate();
//        $result = $validate->batch()->check($data);
//        var_dump($result);
//        var_dump($validate->getError());
//        $data=['id'=>$id];
//        $validate=new IDMustBePositiveInt();
//        $result = $validate->batch()->check($data);
    }
}